package com.gz.steak.modules.system.service.impl;

import com.gz.steak.modules.system.mapper.SysLoginLogMapper;
import com.gz.steak.modules.system.pojo.dataobject.SysLoginLog;
import com.gz.steak.modules.system.service.SysLoginLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author 刘牌
 * @Date 2020/3/28 0028 21:45
 * @Version 1.0
 */
@Service
public class SysLoginLogServiceImpl implements SysLoginLogService {
    @Autowired
    private SysLoginLogMapper sysLoginLogMapper;
    @Override
    public void save(SysLoginLog sysLoginLog) {
        sysLoginLogMapper.insertSelective(sysLoginLog);
    }

    @Override
    public List<SysLoginLog> list(int i, int i1) {

        return sysLoginLogMapper.LoginLogList(0,20);
    }
}
